#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
void sigalrm_fn(int sig)
{
       	FILE *fp1;
   	char text[1024];
   	fp1=fopen("/proc/cpuinfo","r");
  	while(fgets(text,1024,fp1)!=NULL)
  	{
       		puts(text);
  	}
  	fclose(fp1);
        alarm(1);
        return;
}
int main(void)
{
        signal(SIGALRM, sigalrm_fn);
        alarm(1);
        while(1) pause();
}
